package com.springboot.middleware.middleware_grab_red_envelopes.model.entity;

import java.math.BigDecimal;
import java.util.Date;

public class RedRobRecord {
    /**
     * 主键id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Integer id;

    /**
     * 用户id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Integer userId;

    /**
     * 红包全局唯一标识串
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private String redPacket;

    /**
     * 抢到的红包金额
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private BigDecimal amount;

    /**
     * 抢到时间
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Date robTime;

    /**
     * 是否有效
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    private Byte isActive;

    /**
     * 设置主键id
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.id
     *
     * @return the value of red_rob_record.id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Integer getId() {
        return id;
    }

    /**
     * 获取主键id
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.id
     *
     * @param id the value for red_rob_record.id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户id
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.user_id
     *
     * @return the value of red_rob_record.user_id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.user_id
     *
     * @param userId the value for red_rob_record.user_id
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取红包全局唯一标识串
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.red_packet
     *
     * @return the value of red_rob_record.red_packet
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public String getRedPacket() {
        return redPacket;
    }

    /**
     * 设置红包全局唯一标识串
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.red_packet
     *
     * @param redPacket the value for red_rob_record.red_packet
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setRedPacket(String redPacket) {
        this.redPacket = redPacket == null ? null : redPacket.trim();
    }

    /**
     * 获取抢到的红包金额
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.amount
     *
     * @return the value of red_rob_record.amount
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置抢到的红包金额
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.amount
     *
     * @param amount the value for red_rob_record.amount
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取抢到时的时间
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.rob_time
     *
     * @return the value of red_rob_record.rob_time
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Date getRobTime() {
        return robTime;
    }

    /**
     * 设置抢到时的时间
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.rob_time
     *
     * @param robTime the value for red_rob_record.rob_time
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setRobTime(Date robTime) {
        this.robTime = robTime;
    }

    /**
     * 获取是否有效
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column red_rob_record.is_active
     *
     * @return the value of red_rob_record.is_active
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public Byte getIsActive() {
        return isActive;
    }

    /**
     * 设置是否有效
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column red_rob_record.is_active
     *
     * @param isActive the value for red_rob_record.is_active
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    public void setIsActive(Byte isActive) {
        this.isActive = isActive;
    }
}